set powerKeys to the hilite of button "Power Keys"
set blindTyping to the hilite of button "Blind Typing"
put field "paths" of card "stacks" into stacks
put field "paths" of card "applications" into applications
put field "paths" of card "documents" into documents
pop card
set lockScreen to false
set lockMessages to false
end getHomeInfo
on openstack
global blind,string,allow
gethomeinfo
set lockscreen to true
set lockmessages to true
set lockrecent to true
push card
go card 1
if card field"Quiet!" is not "True" and card field"Quiet!" is not "False" then
put empty into msg box
distmsg
if the message box is not empty then
put false into card field "Quiet!"
else
answer"Did you delete the “distmsg” handler?" with "Yes" or "No" or "Huh?"
if it is "Yes" then put"NEVER click “Initialize”! Also, don’t distribute this stack."
if it is not"Yes" then put true into card field "Quiet!" else put "False" into card field "Quiet!"
end if
end if
pop card
set lockscreen to false
set lockmessages to false
set lockrecent to false
put false into allow
put empty into string
hide msg box
hide menubar
if (the freesize of this stack) div 1024 > 40 then
put"The size of this stack is"&&(the size of this stack) div 1024& "K. It could be reduced to about"&&((the size of this stack)-(the freesize of this stack)) div 1024&"K."
answer"May I compact it?" with"No" or "Yes"
if it is "Yes" then domenu"Compact stack"
put "The size of this stack is now"&& the size of this stack div 1024&"K."
end if
end openstack
on newcard
if the number of the target is the number of last card or the number of the target is 4 then
domenu"Delete Card"
put"Please don’t create a new card from there."
go card 1
end if
end newcard
--Beginning of LastPathComponent
function LastPathComponent name
repeat with i = the length of name down to 1
if character i of name is ":" then exit repeat
end repeat
if i is 1 then
if first character of name is ":" then
put 2 into i
end if
else
add 1 to i -- skip the colon
end if
put empty into lastpath
repeat with j = i to the length of name
put character j of name after lastpath
end repeat
return lastpath
end LastPathComponent
--End of LastPathComponent
on Quiet
put"If you edit anything, please don’t distribute this stack."
answer"Get rid of all distribution messages?" with "Yes" or "No"